<?php/**Auth: Wolix li*Mail: wenmingpig@gmail.com*MSN: wenbmingpig@msn.com*WebSite: http://www.wolix.com*Date:2011-2-12*/class BizCorpUserModel extends Model{	protected	$dbName	=	'shininghub_b';	protected	$tablePrefix	=	'v1_';	protected	$tableName	=	'corp_userlink';//不带前缀/**给出用户ID获取公司的ID号码*/	function getCorpIdFromUserId($uid=0){		if(empty($uid)) return '';		$corpInfo = $this->where('userlinkStatus = 1 AND userId = '.$uid)->field('corpId')->find();//查找对应的公司		if($corpInfo){			return $corpInfo['corpId'];		}		return '';	}}?>